<div ng-controller="DictNewGroupCtl">
	<!-- header -->
	<div class="wrapper bg-light lter b-b">
		<a ui-sref="app.dict.list({id:parentId})" class="btn btn-sm btn-default w-xxs m-r-sm" tooltip="返回"><i class="fa fa-long-arrow-left"></i></a>
		<div class="btn-group pos-stc m-r-sm">
			<a ng-click="submit()" href ng-class="{'disabled':newGroupDict.$invalid}" class="btn btn-sm btn-default w-xxs w-auto-xs" tooltip="保存"><i class="fa fa-save"></i></a> 
			<a ng-click="dictGroup={};" class="btn btn-sm btn-default w-xxs w-auto-xs" tooltip="重置"><i class="fa icon-refresh"></i></a>
		</div>
	</div>
	<!-- / header -->
	<div class="wrapper">
		<form ng-init="init()" name="newGroupDict" class="form-horizontal m-t-lg">
			<div class="row">
				<div class="col-lg-12">
					<div class="form-group">
						<label class="col-lg-3 control-label">父级分类:</label>
						<div class="col-lg-6">
						<p class="form-control-static">{{tree.get_selected_branch().label}}</p>
							
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">分类名称:</label>
						<div class="col-lg-6">
							<input type="text" name="dictGroupName" required ng-pattern="/^[\u4e00-\u9fa5]/" class="form-control" ng-model="dictGroup.name">
							<span ng-show='newGroupDict.dictGroupName.$error.pattern'>名称必须为中文，并且不能为空.</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">分类编码:</label>
						<div class="col-lg-6">
							<input type="text" name="dictGroupCode" required ng-pattern="/^[A-Za-z0-9-_]{2,30}$/" class="form-control" ng-model="dictGroup.code">
							<span ng-show="newGroupDict.dictGroupCode.$error.pattern">名称必须为英文、数字、下划线，并且不能为空.</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">分类描述:</label>
						<div class="col-lg-6">
							<textarea style="height: 200px;" ng-model="dictGroup.depict" class="form-control"></textarea>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>